package [[${data.pack}]];

import java.util.List;

/**
 * 基础映射类
 * @author [[${data.author}]]
 * @Date [[${data.createDate}]]
 */
public interface BaseMapper<T> {
	int insert(T entity);
	
	int insertBatch(List<T> entities);
	
	int update(T entity);
	
	int deleteByPrimaryKey(Object primaryKey);
	
	T selectByPrimaryKey(Object primaryKey);
	
	int deleteByParams(BaseMapperParams params);
	
	int updateByParams(BaseMapperParams params);
	
	List<T> selectByParams(BaseMapperParams params);
	
	int selectCountByParams(BaseMapperParams params);
	
	T selectOneByParams(BaseMapperParams params);
}
